From 28b43b510525b8a443c2b8527d1061829806a2ea Mon Sep 17 00:00:00 2001 From: robertl Date: Mon, 12 Jan 2004 06:43:14 +0000 Subject: [PATCH] Let timeouts work right under Windows so GSAK (and users) can more readily tell when their unit is turned off or unplugged. --- jeeps/gpsserial.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/jeeps/gpsserial.c b/jeeps/gpsserial.c index a2e24e75e..5b6d02ebc 100644 --- a/jeeps/gpsserial.c +++ b/jeeps/gpsserial.c @@ -84,6 +84,8 @@ int32 GPS_Serial_On(const char *port, int32 *fd) GetCommTimeouts (comport, &timeout); timeout.ReadIntervalTimeout = 10; + timeout.ReadTotalTimeoutMultiplier = 10; + timeout.ReadTotalTimeoutConstant = 1000; timeout.WriteTotalTimeoutMultiplier = 10; timeout.WriteTotalTimeoutConstant = 1000; if (!SetCommTimeouts (comport, &timeout)) { -- 2.30.2